package com.paff.mw;

import javax.mail.Address;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;

import org.jbpm.api.identity.Group;
import org.jbpm.api.identity.User;
import org.jbpm.pvm.internal.email.spi.AddressResolver;

public class MyAddressResolver implements AddressResolver {

	public Address resolveAddress(User user) {
		try {
			return new InternetAddress("pavel.boev@gmail.com");
		} catch (AddressException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		}
	}

	public Address[] resolveAddresses(Group group) {
		// TODO Auto-generated method stub
		return null;
	}

}
